Playit

CSS Property:
border-image-width:
0
1
2
1 2
1 2 2
1 2 2 1
initial
Result:

This is a DIV element that uses an image as a border.

CSS Code:

    div#main {
        background-color:lightgrey;
        border:30px solid transparent;
        border-image: url('border.png');
        border-image-slice: 30;
        border-image-width: 1;
        border-image-outset: 0;
        border-image-repeat: round;
    }

Click the property values above to see the result
W3Schools.com - Play it